package com.yby.dome2;

/**
 * 圆柱类
 */
public class Cylinder extends Round{
    double height;
    double surfaceArea;//表面积
    double volume;//体积
    public double getArea(double height){
        this.height = height;
        getArea();
        surfaceArea = 2 * area + circumference * this.height;
        System.out.println(surfaceArea);
        return surfaceArea;
    }
    public void volume(){
        getArea();
        volume = area * height;
    }
}
